package com.tourscool.springboot.starter.redisson.config;

import java.util.HashSet;
import java.util.Set;

/**
 * 我长得帅，不需要注释
 *
 * @author Carlton
 * @date 2018/12/27
 */
public class MasterSlaveServersConfig extends BaseMasterSlaveServersConfig {
    /**
     * Redis slave servers addresses
     */
    private Set<String> slaveAddresses = new HashSet<String>();

    /**
     * Redis master server address
     */
    private String masterAddress;

    /**
     * Database index used for Redis connection
     */
    private int database = 0;

    public Set<String> getSlaveAddresses() {
        return slaveAddresses;
    }

    public void setSlaveAddresses(final Set<String> slaveAddresses) {
        this.slaveAddresses = slaveAddresses;
    }

    public String getMasterAddress() {
        return masterAddress;
    }

    public void setMasterAddress(final String masterAddress) {
        this.masterAddress = masterAddress;
    }

    public int getDatabase() {
        return database;
    }

    public void setDatabase(final int database) {
        this.database = database;
    }
}
